﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="VisitorStatistics.aspx.cs" Inherits="Wicresoft.RDW.Manage.VisitorStatistics" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $(".requestDate").datepicker({ dateFormat: 'yy-mm-dd' });
            //$(".requestDate").attr("readonly", "readonly");
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="center">
        <div class="box">
            <div class="main_title">
                <h2>
                    <%=Resources.NameResource.VisitorStatisicsTitle%></h2>
            </div>
            <div class="HistoryApplicationContent">
                <div class="VisitorSLeft">
                    <h3>
                        <%=Resources.NameResource.VisitorStatisicsTitle%></h3>
                    <ul>
                        <li><span class="ui-icons"></span>
                            <asp:LinkButton ID="lbtnVisitorType" runat="server" OnClick="lbtnVisitorType_Click"></asp:LinkButton></li>
                        <li><span class="ui-icons"></span>
                            <asp:LinkButton ID="lbtnLocation" runat="server" OnClick="lbtnLocation_Click"></asp:LinkButton></li>
                        <li><span class="ui-icons"></span>
                            <asp:LinkButton ID="lbtnLab" runat="server" OnClick="lbtnLab_Click"></asp:LinkButton></li>
                        <li><span class="ui-icons"></span>
                            <asp:LinkButton ID="lbtnProduct" runat="server" OnClick="lbtnProduct_Click"></asp:LinkButton></li>
                    </ul>
                </div>
                <div class="VisitorSRight">
                    <div class="MyApplicationContent2">
                        <span>
                            <%=Resources.ManageResource.mgr_lblVisitDate%>：</span>
                        <asp:TextBox ID="txtStartDate" runat="server" class="requestDate" Width="85px"></asp:TextBox>
                        <%-- <img src="/content/images/date.jpg" complete="complete" />--%>
                        <span>
                            <%=Resources.NameResource.DateTo%></span>
                        <asp:TextBox ID="txtEndDate" runat="server" class="requestDate" Width="85px"></asp:TextBox>
                        <%--<img src="/content/images/date.jpg" complete="complete" />--%>
                        <asp:Button ID="btnSelect" runat="server" class="CommandButton" OnClick="btnSelect_Click" />
                        <asp:Label ID="lblOverError" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                    <div class="HistoryApplicationContent">
                        <asp:GridView ID="grRuquestReport" Width="100%" runat="server" AutoGenerateColumns="false"
                            OnRowDataBound="grRuquestReport_RowDataBound" HeaderStyle-CssClass="dcTableHeader"
                            RowStyle-CssClass="dcTableAlternatingItem" AlternatingRowStyle-CssClass="dcTableItem"
                            ShowFooter="True" FooterStyle-CssClass="dcTableItem2">
                            <Columns>
                                <asp:BoundField DataField="RequestTypeName" />
                                <asp:BoundField DataField="RequestCount" />
                                <asp:TemplateField ItemStyle-Width="30%" ItemStyle-CssClass="dcTableLeft">
                                    <ItemTemplate>
                                        <div style="position: absolute; height: 21px; width: 170px; background-color: #C0C0C0;
                                            float: left;">
                                            <asp:Panel ID="panProbress" runat="server" Style="position: absolute; height: 100%;
                                                background-color: #3366FF" />
                                        </div>
                                        <div style="height: 21px; float: right; margin: 0 0 0 0;">
                                            <asp:Literal ID="Literal1" runat="server" Text='<%#Eval("RequestPercent","{0:p0}")%>' />
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataTemplate>
                                <table width="100%">
                                    <tr class="dcTableHeader">
                                        <th>
                                            <%=Resources.ManageResource.mgr_lblVisitorsClassification%>
                                        </th>
                                        <th>
                                            <%=Resources.ManageResource.mgr_lblVisitCount%>
                                        </th>
                                        <th>
                                            <%=Resources.ManageResource.mgr_lblPercent%>
                                        </th>
                                    </tr>
                                </table>
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
